﻿using System.Windows.Input;
using TestBat.IViewModels.Commands;
using TestBat.ViewModels.Base;

namespace TestBat.ViewModels.Commands
{
    public class CommandViewModel : ViewModel, ICommandViewModel
    {
        /// <summary>
        /// constructor
        /// </summary>
        /// <param name="command">the command to execute</param>
        public CommandViewModel(ICommand command)
        {
            this.Command = command;
        }

        public ICommand Command { get; private set; }
    }
}
